<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

class Img{
	public $src;
	public $alt;
	public $align;
	public $style;
	
	public function render(){
		$src = (empty($this->src)) ? '' : ' src="'.$this->src.'" ';
		$alt = (empty($this->alt)) ? '' : ' alt="'.$this->alt.'" ';
		$align = (empty($this->align)) ? '' : ' align="'.$this->align.'" ';
		$style = (empty($this->style)) ? '' : ' style="'.$this->style.'" ';
		
		echo "<img".$src.$alt.$align.$style."/>";
	}
}

?>